<%--
  Created by IntelliJ IDEA.
  User: nico
  Date: 01/10/12
  Time: 16:31
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:textfield label="Event" name="saes.event" id="event" value="%{saes.event}"  />
<s:textfield label="Initial/Follow Up" name="saes.initialFollowUp" id="initialFollowUp" value="%{saes.initialFollowUp}"/>
<s:textfield label="Patient #" name="saes.patientId" id="patientId" value="%{saes.patientId}"/>

<s:hidden  name="saes.eventDate" id="alteventDate" value="%{saes.eventDate}"/>
<s:textfield label="Event Date"  id="eventDate" cssClass="datepicker"/>

<s:checkbox label="SAE Related" labelposition="left" id="saeRelated" name="saes.saeRelated" value="%{saes.saeRelated}"/>

<s:hidden  name="saes.dateSubmissionBms" id="altdateSubmissionBms" value="%{saes.dateSubmissionBms}"/>
<s:textfield label="Date of Submission to BMS"  id="dateSubmissionBms" cssClass="datepicker"/>

<s:hidden  name="saes.submissionExternalEc" id="altsubmissionExternalEc" value="%{saes.submissionExternalEc}"/>
<s:textfield label="Submission to External EC" id="submissionExternalEc" cssClass="datepicker"/>

<s:hidden  name="saes.submissionLocalEc" id="altsubmissionLocalEc" value="%{saes.submissionLocalEc}"/>
<s:textfield label="Submission to Local EC" id="submissionLocalEc" cssClass="datepicker"/>

<s:hidden  name="saes.submissionTeachingC" id="altsubmissionTeachingC" value="%{saes.submissionTeachingC}"/>
<s:textfield label="Submission to Teaching Committee" id="submissionTeachingC" cssClass="datepicker"/>

<s:select label="Scope" name="saes.scope" id="scope"  value="%{saes.scope}"
          list="#{'1':'Site', '2':'Multi-site'}"/>

<tr>
    <td colspan="2" style="text-align: center">
        <s:submit value="Save" id="saesSave" action="saesSave" onclick="setEmptyDates();validate();beforeSave();" theme="simple" />
    </td>
</tr>
<s:if test="saes.id != null">
    <tr>
        <td colspan="2" style="text-align: center">
            <button id="saesClear" onclick="$('#category').change(); $('html, body').animate({ scrollTop:  $('#category').offset().top - 15 }); return false;">Clear</button>
        </td>
    </tr>
</s:if>
<s:hidden name="saes.id" value="%{saes.id}"/>
<script>
    inicializarTodaFecha();
</script>
<s:if test="saes.id != null">
    <script type="text/javascript">
        $('#scope').parent().parent().remove();
    </script>
</s:if>